package com.zx.idc.backend.gui.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;


/**
 * 扩展shiro的token，以容纳验证码
 * @auth jinyuanf
 * @date 2019/4/28 11:45
 **/
public class SysUsernamePasswordToken extends UsernamePasswordToken {

    private String captcha; //验证码

    public SysUsernamePasswordToken(String username, String password,
                                    boolean rememberMe, String host, String captcha){
        super(username, password, rememberMe, host);
        this.captcha = captcha;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

}
